package com.rdxer.repository;

import com.rdxer.model.AnswerSheet;
import com.rdxer.model.Major;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface AnswerSheetRepository extends JpaRepository<AnswerSheet,String>,JpaSpecificationExecutor<AnswerSheet>{

    List<AnswerSheet> findAllByPaperId(String paperId);
    List<AnswerSheet> findAllByPaperIdAndUserId(String paperId,String userId);
    List<AnswerSheet> findAllByUserId(String userId);
}
